import { get } from './fetch';

const version = {
  version: '1.0.0',
  date: '2019.2',
};

const defaultUrl = 'http://www.pdman.cn/DataMocker.json';

export const getCurrentVersion = () => {
  return version;
};

export const getVersion = () => {
  return get(defaultUrl);
};
